package com.bgds.sys.api.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bgds.sys.api.project.request.ProjectRequest;
import com.bgds.sys.module.entity.project.Project;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author chenchao
 * @date 2021/9/14
 */
public interface ProjectService {
    /**
     * 项目查询
     *
     * @param request
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.bgds.sys.module.entity.project.Project>
     * @author chenchao
     * @date 2021/9/14
     */
    IPage<Project> pageList(ProjectRequest request);


    /**
     * 功能描述
     *
     * @param id
     * @return void
     * @author chenchao
     * @date 2021/9/16
     */
    void deleteProject(Long id);

    /**
     * 功能描述
     *
     * @param id
     * @return com.bgds.sys.module.entity.project.Project
     * @author chenchao
     * @date 2021/9/14
     */
    Project getProject(Long id);

    /**
     * 添加
     *
     * @param project
     * @return void
     * @author chenchao
     * @date 2021/9/14
     */
    void addProject(Project project);


    /***
     * 修改
     * @author chenchao
     * @date 2021/9/14
     * @param project
     * @return void
     */
    void saveProject(Project project);


    /**
     * 导出
     *
     * @param ids
     * @return void
     * @author chenchao
     * @date 2021/9/15
     */
    void export(HttpServletResponse response, String ids);

    /**
     * 导入
     *
     * @author chenchao
     * @date 2021/9/15
     */
    void Import(MultipartFile file);

}
